home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / amigaos4_only / fracblank / source / frac.h next >
Text File  |  2004-08-03  |  2KB  |  101 lines

  1. // Command line arguments
  2.  
  3. enum {
  4.   ARG_PRIORITY,
  5.   ARG_POPKEY,
  6.   ARG_POPUP,
  7.   ARG_BLANKSCREEN,
  8.   ARG_SAVESCREEN,
  9.   ARG_FRACTAL,
  10.   ARG_COLOUR,
  11.   ARG_DISPLAYMODE,
  12.   ARG_DEPTH,
  13.   ARG_SCREENTIMEOUT,
  14.   ARG_PATTERNTIMEOUT,
  15.   ARG_MAXRECURSION,
  16.   ARG_MAXDOTS,
  17.  
  18.   ARGCOUNT
  19. };
  20.  
  21. // Hotkey IDs
  22.  
  23. enum {
  24.   POP_WINDOW,
  25.   BLANK_SCREEN,
  26.   SAVE_SCREEN
  27. };
  28.  
  29. // Error codes
  30.  
  31. enum {
  32.   ERR_SystemError  = 30000, // CBERR_SYSERR
  33.   ERR_Duplicate,            // CBERR_DUP,
  34.   ERR_Version,              // CBERR_VERSION,
  35.  
  36.   ERR_BadFilter = 31000,    // COERR_BADFILTER,
  37.   ERR_BadType,              // COERR_BADTYPE
  38.  
  39.   ERR_NoIntuition = 32000,  // intuition.library didn't open
  40.   ERR_NoGfx,                // graphics.library didn't open
  41.   ERR_NoAsl,                // asl.library didn't open
  42.   ERR_NoCommodities,        // commodities.library didn't open
  43.   ERR_NoCommoditiesIFace,   // commodities main interface didn't open
  44.   ERR_NoUtility,            // utility.library didn't open
  45.   ERR_NoUtilityIFace,       // utility main interface didn't open
  46.   ERR_NoIcon,               // icon.library didn't open
  47.   ERR_ScreenModeRequest,    // Couldn't allocate ScreenModeRequester
  48.   ERR_NoColours,            // Couldn't allocate colour table
  49.   ERR_NoPointer,            // Couldn't create transparent pointer
  50.   ERR_NoControlProcess,     // Couldn't create control process
  51.   ERR_NoMsgPort,            // Couldn't create msgport
  52.   ERR_NoWindow,             // Couldn't open window
  53.   ERR_NoKeymap,             // Couldn't open keymap.library
  54.   ERR_NoKeymapIFace,        // Couldn't open keymap main interface
  55.   ERR_NoGTLayout,           // Couldn't open gtlayout.library
  56. };
  57.  
  58. // Fractal types
  59.  
  60. enum {
  61.   FRACTAL_REAL_PLANE,
  62.   FRACTAL_COSMIC_FLAME,
  63.   FRACTAL_RANDOM
  64. };
  65.  
  66. // Colour modes
  67.  
  68. enum {
  69.   COLOUR_CYCLE,
  70.   COLOUR_STATIC
  71. };
  72.  
  73. // Some useful signals
  74.  
  75. #define SIG_FINISH     SIGBREAKF_CTRL_E
  76. #define SIG_BREAK      SIGBREAKF_CTRL_C
  77. #define SIG_CHANGE     SIGBREAKF_CTRL_D
  78. #define SIG_CYCLE      SIGBREAKF_CTRL_E
  79. #define SIG_START      SIGBREAKF_CTRL_F
  80. #define SIG_REFRESH    SIG_START
  81. #define SIG_WAKEUP     SIGBREAKF_CTRL_F
  82. #define SIG_HANDSHAKE  SIGF_SINGLE
  83.  
  84. // A 96 bit colour entry
  85.  
  86. typedef struct ColourEntry {
  87.   ULONG Red,
  88.         Green,
  89.         Blue;
  90. } ColourEntry;
  91.  
  92. // A table of colour entries, ready for LoadRGB32()
  93.  
  94. typedef struct ColourTable {
  95.   WORD NumColours,
  96.        FirstColour;
  97.   ColourEntry Entry[1];
  98.   ULONG Terminator;
  99. } ColourTable;
  100.  
  101.